using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.ModelConfiguration;

namespace Infrastructure.Data.Uow.Mapping
{
    using Domain.Entity;
    
    public partial class UserMapping
     : EntityTypeConfiguration<User>    
    {
    	public UserMapping()
    	{
    		this.ToTable("User");
    		this.HasKey(d => d.Id);
    		this.Property(d => d.AddTime);
    		this.Property(d => d.IpAddress);
    		this.Property(d => d.State);
    		this.Property(d => d.SortNum);
    		this.Property(d => d.UserName);
    		this.Property(d => d.Pwd);
    		this.Property(d => d.TrueName);
    		this.Property(d => d.Sex);
    		this.Property(d => d.Phone);
    		this.Property(d => d.UserType);
    		this.Property(d => d.Guid);
    		this.Property(d => d.DepartmentID);
    		this.Property(d => d.Email);
    		this.Property(d => d.IsActivity);
    	}
    }
}
